home *** CD-ROM | disk | FTP | other *** search
- /* DrawingViewWraps.c generated from DrawingViewWraps.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "DrawingViewWraps.psw"
-
- /*
- * (a) (C) 1990 by Adobe Systems Incorporated. All rights reserved.
- *
- * (b) If this Sample Code is distributed as part of the Display PostScript
- * System Software Development Kit from Adobe Systems Incorporated,
- * then this copy is designated as Development Software and its use is
- * subject to the terms of the License Agreement attached to such Kit.
- *
- * (c) If this Sample Code is distributed independently, then the following
- * terms apply:
- *
- * (d) This file may be freely copied and redistributed as long as:
- * 1) Parts (a), (d), (e) and (f) continue to be included in the file,
- * 2) If the file has been modified in any way, a notice of such
- * modification is conspicuously indicated.
- *
- * (e) PostScript, Display PostScript, and Adobe are registered trademarks of
- * Adobe Systems Incorporated.
- *
- * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
- * CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
- * AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
- * ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
- * OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
- * WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
- * WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
- * DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
- * OF THIRD PARTY RIGHTS.
- */
-
- /*
- * DrawingViewWraps.psw
- *
- * Version: 2.0
- * Author: Ken Fromm
- * History:
- * 03-07-91 Added this comment.
- */
- #line 50 "DrawingViewWraps.c"
- void PSWDefs( void )
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjGeneric obj15;
- DPSBinObjGeneric obj16;
- DPSBinObjGeneric obj17;
- DPSBinObjGeneric obj18;
- DPSBinObjGeneric obj19;
- DPSBinObjGeneric obj20;
- DPSBinObjGeneric obj21;
- DPSBinObjGeneric obj22;
- DPSBinObjGeneric obj23;
- DPSBinObjGeneric obj24;
- DPSBinObjGeneric obj25;
- DPSBinObjGeneric obj26;
- DPSBinObjGeneric obj27;
- DPSBinObjGeneric obj28;
- DPSBinObjGeneric obj29;
- DPSBinObjGeneric obj30;
- DPSBinObjGeneric obj31;
- DPSBinObjGeneric obj32;
- DPSBinObjGeneric obj33;
- DPSBinObjGeneric obj34;
- DPSBinObjGeneric obj35;
- DPSBinObjGeneric obj36;
- DPSBinObjGeneric obj37;
- DPSBinObjGeneric obj38;
- DPSBinObjGeneric obj39;
- DPSBinObjGeneric obj40;
- DPSBinObjGeneric obj41;
- DPSBinObjGeneric obj42;
- DPSBinObjGeneric obj43;
- DPSBinObjGeneric obj44;
- DPSBinObjGeneric obj45;
- DPSBinObjGeneric obj46;
- DPSBinObjGeneric obj47;
- DPSBinObjGeneric obj48;
- DPSBinObjGeneric obj49;
- DPSBinObjGeneric obj50;
- DPSBinObjGeneric obj51;
- DPSBinObjGeneric obj52;
- DPSBinObjGeneric obj53;
- DPSBinObjGeneric obj54;
- DPSBinObjGeneric obj55;
- DPSBinObjGeneric obj56;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 55, 460,
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_EXEC|DPS_ARRAY, 0, 2, 440},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 14}, /* bind */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 414}, /* m */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 107}, /* moveto */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* rm */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 413}, /* l */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 99}, /* lineto */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* rl */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 133}, /* rlineto */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 404}, /* c */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 43}, /* curveto */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* rc */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 122}, /* rcurveto */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* cp */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 22}, /* closepath */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 424}, /* w */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 155}, /* setlinewidth */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 411}, /* j */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 154}, /* setlinejoin */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* cap */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 153}, /* setlinecap */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* mi */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 346}, /* setmiterlimit */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 408}, /* g */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 150}, /* setgray */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* rgb */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 157}, /* setrgbcolor */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* hsb */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 152}, /* sethsbcolor */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* cmyk */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 147}, /* setcmykcolor */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 407}, /* f */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 66}, /* fill */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 420}, /* s */
- {DPS_LITERAL|DPS_NAME, 0, DPSSYSNAME, 167}, /* stroke */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* ldef */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 100}, /* load */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[27] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "ldef",
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- (char *) 0 ,
- "rm",
- "rl",
- "rc",
- "cp",
- "cap",
- "mi",
- "rgb",
- "hsb",
- "cmyk"};
- long int *_dps_nameVals[27];
- _dps_nameVals[0] = &_dpsCodes[0];
- _dps_nameVals[1] = &_dpsCodes[1];
- _dps_nameVals[2] = &_dpsCodes[2];
- _dps_nameVals[3] = &_dpsCodes[3];
- _dps_nameVals[4] = &_dpsCodes[4];
- _dps_nameVals[5] = &_dpsCodes[5];
- _dps_nameVals[6] = &_dpsCodes[6];
- _dps_nameVals[7] = &_dpsCodes[7];
- _dps_nameVals[8] = &_dpsCodes[8];
- _dps_nameVals[9] = &_dpsCodes[9];
- _dps_nameVals[10] = &_dpsCodes[10];
- _dps_nameVals[11] = &_dpsCodes[11];
- _dps_nameVals[12] = &_dpsCodes[12];
- _dps_nameVals[13] = &_dpsCodes[13];
- _dps_nameVals[14] = &_dpsCodes[14];
- _dps_nameVals[15] = &_dpsCodes[15];
- _dps_nameVals[16] = &_dpsCodes[16];
- _dps_nameVals[17] = &_dpsCodes[17];
- _dps_nameVals[18] = &_dpsCodes[18];
- _dps_nameVals[19] = &_dpsCodes[19];
- _dps_nameVals[20] = &_dpsCodes[20];
- _dps_nameVals[21] = &_dpsCodes[21];
- _dps_nameVals[22] = &_dpsCodes[22];
- _dps_nameVals[23] = &_dpsCodes[23];
- _dps_nameVals[24] = &_dpsCodes[24];
- _dps_nameVals[25] = &_dpsCodes[25];
- _dps_nameVals[26] = &_dpsCodes[26];
-
- DPSMapNames(_dpsCurCtxt, 27, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.nameVal = _dpsCodes[0];
- _dpsP[54].val.nameVal = _dpsCodes[1];
- _dpsP[51].val.nameVal = _dpsCodes[2];
- _dpsP[48].val.nameVal = _dpsCodes[3];
- _dpsP[45].val.nameVal = _dpsCodes[4];
- _dpsP[42].val.nameVal = _dpsCodes[5];
- _dpsP[39].val.nameVal = _dpsCodes[6];
- _dpsP[36].val.nameVal = _dpsCodes[7];
- _dpsP[33].val.nameVal = _dpsCodes[8];
- _dpsP[30].val.nameVal = _dpsCodes[9];
- _dpsP[27].val.nameVal = _dpsCodes[10];
- _dpsP[24].val.nameVal = _dpsCodes[11];
- _dpsP[21].val.nameVal = _dpsCodes[12];
- _dpsP[18].val.nameVal = _dpsCodes[13];
- _dpsP[15].val.nameVal = _dpsCodes[14];
- _dpsP[12].val.nameVal = _dpsCodes[15];
- _dpsP[9].val.nameVal = _dpsCodes[16];
- _dpsP[6].val.nameVal = _dpsCodes[17];
- _dpsP[7].val.nameVal = _dpsCodes[18];
- _dpsP[13].val.nameVal = _dpsCodes[19];
- _dpsP[19].val.nameVal = _dpsCodes[20];
- _dpsP[22].val.nameVal = _dpsCodes[21];
- _dpsP[31].val.nameVal = _dpsCodes[22];
- _dpsP[34].val.nameVal = _dpsCodes[23];
- _dpsP[40].val.nameVal = _dpsCodes[24];
- _dpsP[43].val.nameVal = _dpsCodes[25];
- _dpsP[46].val.nameVal = _dpsCodes[26];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,460);
- }
- #line 65 "DrawingViewWraps.psw"
-
- #line 276 "DrawingViewWraps.c"
- void PSWSetlinewidth(float LineWidth)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjGeneric obj1;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 2, 20,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: LineWidth */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 424}, /* w */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = LineWidth;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,20);
- }
- #line 69 "DrawingViewWraps.psw"
-
- #line 302 "DrawingViewWraps.c"
- void PSWSetlinejoin(int LineJoin)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 2, 20,
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: LineJoin */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 411}, /* j */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.integerVal = LineJoin;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,20);
- }
- #line 73 "DrawingViewWraps.psw"
-
- #line 328 "DrawingViewWraps.c"
- void PSWSetlinecap(int LineCap)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 2, 20,
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: LineCap */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* cap */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "cap"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.integerVal = LineCap;
- _dpsP[1].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,20);
- }
- #line 77 "DrawingViewWraps.psw"
-
- #line 367 "DrawingViewWraps.c"
- void PSWSetmiterlimit(float MiterLimit)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjGeneric obj1;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 2, 20,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: MiterLimit */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* mi */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "mi"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = MiterLimit;
- _dpsP[1].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,20);
- }
- #line 81 "DrawingViewWraps.psw"
-
- #line 406 "DrawingViewWraps.c"
- void PSWMoveto(float X, float Y)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 3, 28,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 414}, /* m */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[1].val.realVal = Y;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,28);
- }
- #line 85 "DrawingViewWraps.psw"
-
- #line 435 "DrawingViewWraps.c"
- void PSWSetgray(float Gray)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjGeneric obj1;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 2, 20,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Gray */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 408}, /* g */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = Gray;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,20);
- }
- #line 89 "DrawingViewWraps.psw"
-
- #line 461 "DrawingViewWraps.c"
- void PSWSetrgbcolor(float Red, float Green, float Blue)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjReal obj2;
- DPSBinObjGeneric obj3;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 4, 36,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Red */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Green */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Blue */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* rgb */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "rgb"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = Red;
- _dpsP[1].val.realVal = Green;
- _dpsP[2].val.realVal = Blue;
- _dpsP[3].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,36);
- }
- #line 93 "DrawingViewWraps.psw"
-
- #line 506 "DrawingViewWraps.c"
- void PSWSethsbcolor(float Hue, float Sat, float Bri)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjReal obj2;
- DPSBinObjGeneric obj3;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 4, 36,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Hue */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Sat */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Bri */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* hsb */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "hsb"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = Hue;
- _dpsP[1].val.realVal = Sat;
- _dpsP[2].val.realVal = Bri;
- _dpsP[3].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,36);
- }
- #line 97 "DrawingViewWraps.psw"
-
- #line 551 "DrawingViewWraps.c"
- void PSWSetcmykcolor(float Cyan, float Mag, float Yel, float Black)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjReal obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 5, 44,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Cyan */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Mag */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Yel */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Black */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* cmyk */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "cmyk"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = Cyan;
- _dpsP[1].val.realVal = Mag;
- _dpsP[2].val.realVal = Yel;
- _dpsP[3].val.realVal = Black;
- _dpsP[4].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,44);
- }
- #line 101 "DrawingViewWraps.psw"
-
- #line 599 "DrawingViewWraps.c"
- void PSWRmoveto(float X, float Y)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 3, 28,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* rm */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "rm"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[1].val.realVal = Y;
- _dpsP[2].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,28);
- }
- #line 105 "DrawingViewWraps.psw"
-
- #line 641 "DrawingViewWraps.c"
- void PSWLineto(float X, float Y)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 3, 28,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 413}, /* l */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[1].val.realVal = Y;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,28);
- }
- #line 109 "DrawingViewWraps.psw"
-
- #line 670 "DrawingViewWraps.c"
- void PSWRlineto(float X, float Y)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 3, 28,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* rl */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "rl"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[1].val.realVal = Y;
- _dpsP[2].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,28);
- }
- #line 113 "DrawingViewWraps.psw"
-
- #line 712 "DrawingViewWraps.c"
- void PSWCurveto(float X1, float Y1, float X2, float Y2, float X3, float Y3)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjReal obj2;
- DPSBinObjReal obj3;
- DPSBinObjReal obj4;
- DPSBinObjReal obj5;
- DPSBinObjGeneric obj6;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 7, 60,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X3 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y3 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 404}, /* c */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X1;
- _dpsP[1].val.realVal = Y1;
- _dpsP[2].val.realVal = X2;
- _dpsP[3].val.realVal = Y2;
- _dpsP[4].val.realVal = X3;
- _dpsP[5].val.realVal = Y3;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,60);
- }
- #line 117 "DrawingViewWraps.psw"
-
- #line 753 "DrawingViewWraps.c"
- void PSWRcurveto(float X1, float Y1, float X2, float Y2, float X3, float Y3)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjReal obj2;
- DPSBinObjReal obj3;
- DPSBinObjReal obj4;
- DPSBinObjReal obj5;
- DPSBinObjGeneric obj6;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 7, 60,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y1 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y2 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X3 */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y3 */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* rc */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "rc"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X1;
- _dpsP[1].val.realVal = Y1;
- _dpsP[2].val.realVal = X2;
- _dpsP[3].val.realVal = Y2;
- _dpsP[4].val.realVal = X3;
- _dpsP[5].val.realVal = Y3;
- _dpsP[6].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,60);
- }
- #line 121 "DrawingViewWraps.psw"
-
- #line 807 "DrawingViewWraps.c"
- void PSWClosepath( void )
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 1, 12,
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* cp */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "cp"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,12);
- }
- #line 125 "DrawingViewWraps.psw"
-
- #line 843 "DrawingViewWraps.c"
- void PSWFill( void )
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- } _dpsQ;
- static const _dpsQ _dpsF = {
- DPS_DEF_TOKENTYPE, 1, 12,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 407}, /* f */
- }; /* _dpsQ */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,12);
- }
- #line 129 "DrawingViewWraps.psw"
-
- #line 862 "DrawingViewWraps.c"
- void PSWStroke( void )
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- } _dpsQ;
- static const _dpsQ _dpsF = {
- DPS_DEF_TOKENTYPE, 1, 12,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 420}, /* s */
- }; /* _dpsQ */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,12);
- }
- #line 133 "DrawingViewWraps.psw"
-
-
-